using UnityEngine;
using System.Collections;

public class sensor : MonoBehaviour {

public static int sensorfront=0;
int test=0;

void OnTriggerEnter  (Collider other) {
sensorfront=1;
test=1;
}

void OnTriggerExit  (Collider other) {
sensorfront=0;
test=0;
}
}
